package com.erp.erp_entitys.Customer;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class CustomerVoEntity {
    /**
     * 流程ID
     */
    private String processid;
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 简称
     */
    private String abbreviation;
    /**
     * 客户简码
     */
    private String shortCode;
    /**
     * 业务员
     */
    private String salesman;

    /**
     * 客户编码
     */
    private String code;

    /**
     * 客户名称
     */
    private String name;

    /**
     * 客户类型
     */
    private String type;

    /**
     * 地址
     */
    private String address;

    /**
     * 国家/地区
     */
    private String country;

    /**
     * 省份/港口
     */
    private String province;

    /**
     * 城市
     */
    private String city;

    /**
     * 邮编
     */
    private String postcode;

    /**
     * 主页
     */
    private String homepage;

    /**
     * SWIFT CODE
     */
    private String swiftcode;

    /**
     * 跟进周期(天)
     */
    private Integer followUpPeriod;

    /**
     * 快寄地址
     */
    private String expressAddress;

    /**
     * 快寄到付账号
     */
    private String paymentAccountNo;

    /**
     * 客户级别
     */
    private String level;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建者
     */
    private String creater;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date createtime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date updatetime;
    /**
     * 帐期
     */
    private String accountPeriod;

    /**
     * 开户银行
     */
    private String bank;

    /**
     * 开户帐号
     */
    private String bankaccount;

    /**
     * 主营产品
     */
    private String mainBusiness;

    /**
     * 客户来源
     */
    private String sourceOfCustomers;

    /**
     * 业务类型
     */
    private String businessType;

    /**
     * 电话
     */
    private String phone;

    /**
     * 审批状态
     */
    private String spstatus;

    /**
     * 客户状态
     */
    private String status;

    /**
     * logo
     */
    private String logo;
    /**
     * 是否成单（是否做过外销）
     */
    private String isMaker;
    /**
     * 客户 属性
     */
    private String attributesOfCustomers;

    public String getAttributesOfCustomers() {
        return attributesOfCustomers;
    }

    public void setAttributesOfCustomers(String attributesOfCustomers) {
        this.attributesOfCustomers = attributesOfCustomers;
    }

    public String getIsMaker() {
        return isMaker;
    }

    public void setIsMaker(String isMaker) {
        this.isMaker = isMaker;
    }

    private static final long serialVersionUID = 1L;

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getSalesman() {
        return salesman;
    }

    public void setSalesman(String salesman) {
        this.salesman = salesman;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getHomepage() {
        return homepage;
    }

    public void setHomepage(String homepage) {
        this.homepage = homepage;
    }

    public String getSwiftcode() {
        return swiftcode;
    }

    public void setSwiftcode(String swiftcode) {
        this.swiftcode = swiftcode;
    }

    public Integer getFollowUpPeriod() {
        return followUpPeriod;
    }

    public void setFollowUpPeriod(Integer followUpPeriod) {
        this.followUpPeriod = followUpPeriod;
    }

    public String getExpressAddress() {
        return expressAddress;
    }

    public void setExpressAddress(String expressAddress) {
        this.expressAddress = expressAddress;
    }

    public String getPaymentAccountNo() {
        return paymentAccountNo;
    }

    public void setPaymentAccountNo(String paymentAccountNo) {
        this.paymentAccountNo = paymentAccountNo;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getAccountPeriod() {
        return accountPeriod;
    }

    public void setAccountPeriod(String accountPeriod) {
        this.accountPeriod = accountPeriod;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getBankaccount() {
        return bankaccount;
    }

    public void setBankaccount(String bankaccount) {
        this.bankaccount = bankaccount;
    }

    public String getMainBusiness() {
        return mainBusiness;
    }

    public void setMainBusiness(String mainBusiness) {
        this.mainBusiness = mainBusiness;
    }

    public String getSourceOfCustomers() {
        return sourceOfCustomers;
    }

    public void setSourceOfCustomers(String sourceOfCustomers) {
        this.sourceOfCustomers = sourceOfCustomers;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSpstatus() {
        return spstatus;
    }

    public void setSpstatus(String spstatus) {
        this.spstatus = spstatus;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }
    public String getProcessid() {
        return processid;
    }

    public String getShortCode() {
        return shortCode;
    }

    public void setShortCode(String shortCode) {
        this.shortCode = shortCode;
    }

    public void setProcessid(String processid) {
        this.processid = processid;
    }
     public CustomerVoEntity conver (CustomerEntity ce){
         CustomerVoEntity vo=new CustomerVoEntity();
         vo.setId(ce.getId());
        //this.id=ce.getId();
        //this.abbreviation=ce.getAbbreviation();
         vo.setAbbreviation(ce.getAbbreviation());
       // this.salesman=ce.getSalesman();
         vo.setSalesman(ce.getSalesman());
        //this.code=ce.getCode();
         vo.setCode(ce.getCode());
        //this.name=ce.getName();
         vo.setName(ce.getName());
       // this.type=ce.getType();
         vo.setType(ce.getType());
       // this.address=ce.getAddress();
         vo.setAddress(ce.getAddress());
       // this.country=ce.getCountry();
         vo.setCountry(ce.getCountry());
       // this.province=ce.getProvince();
         vo.setProvince(ce.getProvince());
       // this.city=ce.getCity();
         vo.setCity(ce.getCity());
       // this.postcode=ce.getPostcode();
         vo.setPostcode(ce.getPostcode());
       // this.homepage=ce.getHomepage();
         vo.setHomepage(ce.getHomepage());
       // this.swiftcode=ce.getSwiftcode();
         vo.setSwiftcode(ce.getSwiftcode());
       // this.followUpPeriod=ce.getFollowUpPeriod();
         vo.setFollowUpPeriod(ce.getFollowUpPeriod());
        //this.expressAddress=ce.getExpressAddress();
         vo.setExpressAddress(ce.getExpressAddress());
        //this.paymentAccountNo=ce.getPaymentAccountNo();
         vo.setPaymentAccountNo(ce.getPaymentAccountNo());
       // this.level=ce.getLevel();
         vo.setLevel(ce.getLevel());
       // this.remark=ce.getRemark();
         vo.setRemark(ce.getRemark());
       // this.creater=ce.getCreater();
         vo.setCreater(ce.getCreater());
       // this.createtime=ce.getCreatetime();
         vo.setCreatetime(ce.getCreatetime());
         vo.setUpdatetime(ce.getUpdatetime());
       // this.accountPeriod=ce.getAccountPeriod();
         vo.setAccountPeriod(ce.getAccountPeriod());
       // this.bank=ce.getBank();
         vo.setBank(ce.getBank());
        //this.bankaccount=ce.getBankaccount();
         vo.setBankaccount(ce.getBankaccount());
        //this.mainBusiness=ce.getMainBusiness();
         vo.setMainBusiness(ce.getMainBusiness());
       // this.sourceOfCustomers=ce.getSourceOfCustomers();
         vo.setSourceOfCustomers(ce.getSourceOfCustomers());
       // this.businessType=ce.getBusinessType();
         vo.setBusinessType(ce.getBusinessType());
       // this.phone=ce.getPhone();
         vo.setPhone(ce.getPhone());
        //this.spstatus=ce.getSpstatus();
         vo.setSpstatus(ce.getSpstatus());
        //this.status=ce.getStatus();
         vo.setStatus(ce.getStatus());
       // this.logo=ce.getLogo();
         vo.setLogo(ce.getLogo());
         vo.setShortCode(ce.getShortCode());
         vo.setIsMaker(ce.getIsMaker());
         return vo;









     }
}
